
安装最后显示：
\begin{shaded}
\begin{verbatim}
sudo apt-get install vsftpd

Adding system user `ftp' (UID 112) ...
Adding new user `ftp' (UID 112) with group `nogroup' ...
Not creating home directory `/home/ftp'.
 * Starting FTP server: vsftpd                                           [ OK ] 


renewjoy@ubuntu:home$ ls -l
total 28
drwxr-xr-x  2 root     nogroup   4096 2008-08-27 23:08 ftp
drwxr-xr-x 12 joy      joy       4096 2008-08-03 23:41 joy
drwx------  2 root     root     16384 2008-07-24 19:19 lost+found
drwxr-xr-x 71 renewjoy renewjoy  4096 2008-08-27 23:10 renewjoy
\end{verbatim}
\end{shaded}

1.安装vsftpd
\begin{shaded}
\begin{verbatim}
apt-get install vsftpd
\end{verbatim}
\end{shaded}

2.启动vsftpd
\begin{shaded}
\begin{verbatim}
/etc/init.d/vsftpd restart
\end{verbatim}
\end{shaded}

3.将/home/ftp的属主改为自己帐户
\begin{shaded}
\begin{verbatim}
cd /home
chown 帐户 ftp
\end{verbatim}
\end{shaded}

4.每次将文件或目录拷贝到/home/ftp(利用root权限)
\begin{shaded}
\begin{verbatim}
cp /某文件夹或某文件 /home/ftp
\end{verbatim}
\end{shaded}

5.改权限
\begin{shaded}
\begin{verbatim}
cd /home/ftp
chmod 755 -R *
\end{verbatim}
\end{shaded}

在虚拟机中用ftp://IP地址就可以访问了。

\begin{flushright}
  \hyperref[content]{回到目录}
\end{flushright}